<?php
/**
 * sitechanneltemplate.php
 * Created on 2015-03-25 09:52:19
 * Create by yuebin
 */
namespace haibao\cms\model\data\site;

class SiteChannelTemplate extends \haibao\cms\model\data\Base {

	const STATUS_ENABLE = 1;
	const STATUS_DIS_ENABLE = 0;
	
	const AUTO_BUILD_YES = 1;
	const AUTO_BUILD_NO = 0;
	const SITE_PUBLISH_JOB_ID = 12;
	/**
	 * 频道ID
	 */
	public $ChannelId;
	/**
	 * 模版ID
	 */
	public $TemplateId;
	/**
	 * 静态文件名称
	 */
	public $FileName;
	/**
	 * 是否自动生成 1 是，0 否
	 */
	public $AutoBuild;
	/**
	 * 静态文件生成周期(分钟)
	 */
	public $BuildCycle = 0;
	/**
	 * 最后一次生成时间
	 */
	public $LastBuildTime;
	/**
	 * 模版状态
	 */
	public $Status =1;
	public $TemplateInfo;
	public $ChannelInfo;
	public $SiteChannelTag;
	public function __construct() {
		parent::__construct();
		$this->intField ( 'ChannelId', 'ChannelId', true );
		$this->intField ( 'TemplateId', 'TemplateId', true );
		$this->stringField ( 'FileName', 'FileName', true  );
		$this->intField ( 'AutoBuild', 'AutoBuild', true  );
		$this->intField ( 'BuildCycle', 'BuildCycle', true  );
		$this->dateField ( 'LastBuildTime', 'LastBuildTime' );
		$this->intField ( 'Status', 'Status' );
		
		$this->setTableName ( 'SiteChannelTemplate' );
	}

}